#define _CRT_SECURE_NO_WARNINGS 1
#include "List.h"

void test1(SeqList* ps)
{
	
	ps->a[0] = 1;
	ps->size = 1;

	SeqListPushBack(ps, 10);
	SeqListPrint(ps);

	SeqListPushFront(ps, 1);
	SeqListPrint(ps);

	SeqListInsert(ps, 1, 5);
	SeqListPrint(ps);

	printf("%d\n",SeqListFind(ps, 5));

	SeqListPopBack(ps);
	SeqListPrint(ps);

	SeqListPopFront(ps);
	SeqListPrint(ps);

	SeqListErase(ps, 0);
	SeqListPrint(ps);
}

int main()
{
	SeqList ps;
	SeqListInit(&ps);
	SLCheckCapacity(&ps);
	test1(&ps);
	return 0;
}